<?php
class GalleryHelper extends AppHelper{
	var $helpers = array('Html', 'Form');
	
	public function index($gallery=null,$params=null){
		App::import('Component', 'Gallery.CGallery');
    	$this->CGallery = new CGalleryComponent;    	
    	$gallery_items = $this->CGallery->get_gallery($gallery,$params);
		return $gallery_items;
	}
	
	public function categories(){
		App::import('Component', 'Gallery.CGallery');
		$this->CGallery = new CGalleryComponent;
		$categories = $this->CGallery->get_categories();
		return $categories;
	}
	
	public function category($id=null){
		App::import('Component', 'Gallery.CGallery');
		$this->CGallery = new CGalleryComponent;
		$category = $this->CGallery->get_category($id);
		return $category;
	}
}